package com.cwj.we.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by cwj on 2023-6-1.
 * <p>
 * Description:影视推荐
 */
public class Recommend implements Parcelable {

    /**
     * name : 王牌替身
     * url : https://dow.dowlz14.com/20230526/7582_f1681ce2/王牌替身.mp4
     * img : https://img.liangzipic.com/upload/vod/20230526-1/97f4c30cd4e3b51364df5aecc30b097d.jpg
     */

    private String name;
    private String url;
    private String img;

    protected Recommend(Parcel in) {
        name = in.readString();
        url = in.readString();
        img = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeString(url);
        dest.writeString(img);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<Recommend> CREATOR = new Creator<Recommend>() {
        @Override
        public Recommend createFromParcel(Parcel in) {
            return new Recommend(in);
        }

        @Override
        public Recommend[] newArray(int size) {
            return new Recommend[size];
        }
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
}
